<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Group')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('group[]', $groupdata, null, ['class'=>'form-control selectpicker', 'multiple'=>'', 'data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="username" name="row[username]" value="" data-rule="required;username" />
        </div>
    </div>

    <div class="form-group">
        <label for="enterp_name" class="control-label col-xs-12 col-sm-2">{:__('企业名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="enterp_name" name="row[enterp_name]" value="" data-rule="required;enterp_name" />
        </div>
    </div>
    <div class="form-group">
        <label for="email" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="email" class="form-control" id="email" name="row[email]" value="" data-rule="required;email" />
        </div>
    </div>
    <div class="form-group">
        <label for="mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="mobile" name="row[mobile]" value="" data-rule="mobile" />
        </div>
    </div>
    <div class="form-group">
        <label for="phone" class="control-label col-xs-12 col-sm-2">{:__('企业电话')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="phone" name="row[phone]" value=""  />
        </div>
    </div>
    <div class="form-group">
        <label for="address" class="control-label col-xs-12 col-sm-2">{:__('企业地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="address" name="row[address]" value=""  />
        </div>
    </div>

    <div class="form-group">
        <label for="enterp_url" class="control-label col-xs-12 col-sm-2">{:__('企业官网地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="enterp_url" name="row[enterp_url]" value=""  />
        </div>
    </div>
    <div class="form-group">
        <label for="nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="nickname" name="row[nickname]" autocomplete="off" value="" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="password" class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="password" class="form-control" id="password" name="row[password]" autocomplete="new-password" value="" data-rule="required;password" />
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否是防窜货')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
            <label for="row[is_fangcuan]-2"><input id="row[is_fangcuan]-2" name="row[is_fangcuan]" type="radio" value="2"  /> 是</label> 
            <label for="row[is_fangcuan]-1"><input id="row[is_fangcuan]-1" name="row[is_fangcuan]" type="radio" value="1" checked /> 否</label> 
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否是溯源码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
            <label for="row[is_suyuan]-2"><input id="row[is_suyuan]-2" name="row[is_suyuan]" type="radio" value="2"  /> 是</label> 
            <label for="row[is_suyuan]-1"><input id="row[is_suyuan]-1" name="row[is_suyuan]" type="radio" value="1" checked /> 否</label> 
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否是活动码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
            <label for="row[is_activity]-2"><input id="row[is_activity]-2" name="row[is_activity]" type="radio" value="2"  /> 是</label> 
            <label for="row[is_activity]-1"><input id="row[is_activity]-1" name="row[is_activity]" type="radio" value="1" checked /> 否</label> 
            </div>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
